<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>产品档案详情</title>
    <link rel="stylesheet" href="../css/pintuer.css">
    <link rel="stylesheet" href="../css/admin.css">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <style>
        input{
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: black solid 1px;
        }
        table{
            border: 1px;
            cell-padding:0;
            cell-spacing:0;
            width: 80%;
            margin-top: 20px;
        }
        table thead{
            background-color:#b3d7ff ;
        }
        a{
            cursor: pointer;
        }
    </style>
</head>
<body>
<script src="../js/jquery-3.4.1.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table1.15.3.js"></script>
<script>
    var thisUrl=document.URL;
    var getval=thisUrl.split("?")[1];
    var showval=getval.split("=")[1];
    $(function () {
        $.ajax({
            url:'/dFile/selectByPID.action',
            data: 'id='+showval,
            dataType: 'json',
            type: 'post',
            success:function (data) {
                $('input[name="PRODUCT_ID"]').val(data.PRODUCT_ID);
                $("input[name='PRODUCT_NAME']").val(data.PRODUCT_NAME);
                $("input[name='FACTORY_NAME']").val(data.FACTORY_NAME);
                $('input[name="FIRST_KIND_NAME"]').val(data.FIRST_KIND_NAME);
                $('input[name="SECOND_KIND_NAME"]').val(data.SECOND_KIND_NAME);
                $('input[name="THIRD_KIND_NAME"]').val(data.THIRD_KIND_NAME);
                $('input[name="PRODUCT_NICK"]').val(data.PRODUCT_NICK);
                $('input[name="TYPE"]').val(data.TYPE);
                $('input[name="PRODUCT_CLASS"]').val(data.PRODUCT_CLASS)
                $('input[name="PERSONAL_UNIT"]').val(data.PERSONAL_UNIT);
                $('input[name="PERSONAL_VALUE"]').val(data.PERSONAL_VALUE);
                $('input[name="LIST_PRICE"]').val(data.LIST_PRICE);
                $('input[name="COST_PRICE"]').val(data.COST_PRICE);
                $('input[name="REAL_COST_PRICE"]').val(data.REAL_COST_PRICE);
                $('input[name="WARRANTY"]').val(data.WARRANTY);
                $('input[name="TWIN_NAME"]').val(data.TWIN_NAME);
                $('input[name="TWIN_ID"]').val(data.TWIN_ID);
                $('input[name="LIFECYCLE"]').val(data.LIFECYCLE);
                $('input[name="AMOUNT_UNIT"]').val(data.AMOUNT_UNIT);
                $('textarea[name="PROVIDER_GROUP"]').val(data.PROVIDER_GROUP);
                $('textarea[name="PRODUCT_DESCRIBE"]').val(data.PRODUCT_DESCRIBE);
                $('input[name="REGISTER"]').val(data.REGISTER);
                $('input[name="REGISTER_TIME"]').val(data.REGISTER_TIME);
                $('input[name="CHECK_TAG"]').val(data.CHECK_TAG);
                $('input[name="DELETE_TAG"]').val(data.DELETE_TAG);
                $("input[name='DESIGN_MODULE_TAG']").val(data.DESIGN_MODULE_TAG);
                $('input[name="DESIGN_PROCEDURE_TAG"]').val(data.DESIGN_PROCEDURE_TAG);
                $('input[name="DESIGN_CELL_TAG"]').val(data.DESIGN_CELL_TAG);
                $('input[name="ID"]').val(data.ID);

                $('select[name="RESPONSIBL_PERSON"]').val(data.RESPONSIBL_PERSON);
                $('input[name="CHECKER"]').val(data.CHECKER);
                $('input[name="CHECK_TIME"]').val(data.CHECK_TIME);
                $('input[name="CHANGE_TIME"]').val(data.CHANGE_TIME);
                $('input[name="FILE_CHANGE_AMOUNT"]').val(data.FILE_CHANGE_AMOUNT);

            }
        });
    })
</script>
<div class="container">
    <form id="frm">
        <table>
            <tr>
                <td colspan="4"><div style="margin: 0px;padding: 0px; background-color: #09c"><span style="color: #eeffff">主信息</span></div></td>
            </tr>
            <tr>
                <td>档案编号：</td>
                <td colspan="3"><input type="text" style="background-color: white;" name="PRODUCT_ID"></td>
            </tr>
            <tr>
                <td><span style="color: black;">产品名称：</span></td>
                <td><input type="text" name="PRODUCT_NAME"></td>
                <td><span style="color: black;">制造商：</span></td>
                <td><input type="text" name="FACTORY_NAME"></td>
            </tr>
            <tr>
                <td><span style="color: black;">I级分类：</span></td>
                <td><input type="text" name="FIRST_KIND_NAME"></td>
                <td><span style="color: black;">II级分类：</span></td>
                <td><input type="text" name="SECOND_KIND_NAME" /></td>
            </tr>

            <tr>
                <td><span style="color: black;">III级分类：</span></td>
                <td><input type="text" name="THIRD_KIND_NAME"/></td>
                <td><span style="color: black;">产品简称：</span></td>
                <td><input type="text" name="PRODUCT_NICK"/></td>
            </tr>

            <tr>
                <td><span style="color: black;">用途类型：</span></td>
                <td><input type="text" name="TYPE"/>
                </td>
                <td><span style="color: black;">档次级别：</span></td>
                <td><input type="text" name="PRODUCT_CLASS"/>
                </td>
            </tr>
            <tr>
                <td><span style="color: black;">计量单位：</span></td>
                <td><input type="text" name="PERSONAL_UNIT"></td>
                <td><span style="color: black;">计量值：</span></td>
                <td><input type="text" name="PERSONAL_VALUE"></td>
            </tr>
            <tr>
                <td><span style="color: black;">市场单价（元）：</span></td>
                <td><input type="text" name="LIST_PRICE"></td>
                <td><span style="color: black;">计划成本单价（元）：</span></td>
                <td><input type="text" name="COST_PRICE"></td>
            </tr>
            <!--        weixiede-->
            <tr>
                <td><span style="color: black;">成本单价（元）：</span></td>
                <td colspan="2"><input type="text" name="REAL_COST_PRICE"></td>

            </tr>
            <tr>
                <td colspan="4"><div style="margin: 0px;padding: 0px; background-color: #09c"><span style="color: #eeffff">辅助信息</span></div></td>
            </tr>
            <tr>
                <td><span style="color: black;">保修期：</span></td>
                <td><input type="text" name="WARRANTY"></td>
                <td><span style="color: black;">替代品名称：</span></td>
                <td><input type="text" name="TWIN_NAME"></td>
            </tr>
            <tr>
                <td><span style="color: black;">替代品编号：</span></td>
                <td><input type="text" name="TWIN_ID"></td>
                <td><span style="color: black;">生命周期（年）：</span></td>
                <td><input type="text" name="LIFECYCLE"></td>
            </tr>
            <tr>
                <td><span style="color: black;">单位：</span></td>
                <td colspan="2"><input type="text" name="AMOUNT_UNIT"></td>

            </tr>
            <tr>
                <td><span style="color: black;">供应商集合：</span></td>
                <td><textarea  name="PROVIDER_GROUP"></textarea></td>
                <td><span style="color: black;">产品描述：</span></td>
                <td><textarea  name="PRODUCT_DESCRIBE"></textarea></td>
            </tr>
            <tr>
                <td><span style="color: black;">档案附件</span></td>
                <td><input type="text"></td>
                <td><span style="color: black;">档案变更累计</span></td>
                <td><input type="text" name="FILE_CHANGE_AMOUNT"></td>
            </tr>
            <tr>
                <td><span style="color: black;">最近变更时间</span></td>
                <td><input type="text" name="CHANGE_TIME"></td>
                <td><span style="color: black;">建档时间</span></td>
                <td><input type="text" name="REGISTER_TIME"></td>
            </tr>
            <tr>
                <td><span style="color: black;">产品经理：</span></td>
                <td><select name="RESPONSIBL_PERSON">
                    <option value="老夏">老夏</option>
                    <option value="许某">许某</option>
                    <option value="小刘">小刘</option>
                </select></td>
                <td><span style="color: black;">登记人：</span></td>
                <td><input type="text"  name="REGISTER"/></td>
            </tr>
            <tr>
                <td><span style="color: black;">复核人：</span></td>
                <td><input type="text"  name="CHECKER"/></td>
                <td><span style="color: black;">复核时间：</span></td>
                <td><input type="text" name="CHECK_TIME"/></td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>